package com.goldfish666.remote_control.config;

import org.hibernate.boot.model.naming.EntityNaming;
import org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy;

public class MyImplicitNamingStrategy extends SpringImplicitNamingStrategy {
    /**
     * 表前缀
     */
    public static final String TABLE_PREFIX = "tv_";

    @Override
    protected String transformEntityName(EntityNaming entityNaming) {
        return TABLE_PREFIX + super.transformEntityName(entityNaming);
    }

}